package com.health.yb.web.bean.req;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 临床检查主表
 *
 * @author rjwang
 * @version 1.0
 * @date: 2019-12-15 15:57:26
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(description = "用户领取物品添加")
public class YbUserReq implements Serializable {


    private static final long serialVersionUID = 8113071377596257942L;

    @ApiModelProperty("类型Id")
    @NotNull(message = "类型必选")
    private Long typeId;

    @ApiModelProperty("数量")
    @DecimalMin(value ="1",message = "数量必须为大于等于1的正整数")
    private BigDecimal quantity;


}
